#include "action.h"

Action::Action(QString filename, QObject *parent) :
    QAction(parent)
{
    this->filename = filename;

    connect(this, SIGNAL(triggered()), this, SLOT(onTriggered()));
}

void Action::onTriggered()
{
    emit triggered(filename);
}
